home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / amos / AMOSList-0998.lzh / AMOSLIST / 000023_bounce-amos-li…net@onelist.com_Wed Sep 2 05:27:27 1998.msg < prev    next >
Text File  |  1998-10-01  |  6KB  |  162 lines

  1. >From bounce-amos-list--882-mcox=access.digex.net@onelist.com  Wed Sep  2 05:27:27 1998
  2. Received: from onelist.com (pop.onelist.com [209.207.135.253])
  3.     by pony-1.mail.digex.net (8.8.8/8.8.8) with SMTP id FAA06769
  4.     for <mcox@access.digex.net>; Wed, 2 Sep 1998 05:27:27 -0400 (EDT)
  5. Received: (qmail 31557 invoked by alias); 2 Sep 1998 09:24:57 -0000
  6. Received: (qmail 31460 invoked from network); 2 Sep 1998 09:24:54 -0000
  7. Received: from unknown (HELO neodymium.btinternet.com) (194.73.73.83) by pop.onelist.com with SMTP; 2 Sep 1998 09:24:54 -0000
  8. Received: from np5gt [195.99.56.103]  by neodymium.btinternet.com with smtp (Exim 1.70 #1) id 0zE9B3-0002n0-00; Wed, 2 Sep 1998 10:26:10 +0100
  9. Message-ID: <003d01bdd653$c7d50ce0$673863c3@np5gt>
  10. From: "John Glanville" <John.Glanville@btinternet.com>
  11. To: <amos-list@onelist.com>
  12. Date: Wed, 2 Sep 1998 10:26:33 +0100
  13. X-Priority: 3
  14. X-MSMail-Priority: Normal
  15. X-Mailer: Microsoft Outlook Express 4.72.3110.1
  16. X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
  17. Mailing-List: list amos-list@onelist.com; contact http://www.onelist.com
  18. Delivered-To: mailing list amos-list@onelist.com
  19. Precedence: bulk
  20. Reply-to: amos-list@onelist.com
  21. Mime-Version: 1.0
  22. Content-Type: text/plain; charset="iso-8859-1"
  23. Content-Transfer-Encoding: 7bit
  24. Subject: [amos-list] Re: Hey! Ne1 Like Joysticks?
  25. Status: O
  26. X-Status: 
  27.  
  28. From: "John Glanville" <John.Glanville@btinternet.com>
  29.  
  30.  
  31. -----Original Message-----
  32. From: Andrew Crowe <andrewcrowe@enterprise.net>
  33. To: amos-list@onelist.com <amos-list@onelist.com>
  34. Date: 02 September 1998 01:19
  35. Subject: [amos-list] Re: Hey! Ne1 Like Joysticks?
  36.  
  37.  
  38. >From: Andrew Crowe <andrewcrowe@enterprise.net>
  39. >
  40. >Hi Everybody,
  41. >
  42. >> Hey! Look! At this Ne1 want a piece of code that turns the joystick
  43. >input 2 + or -..
  44. >
  45. >Hmm, this seemed a bit too complicated, so I decided to check it out
  46. >(and I managed to kill 5mins at the same time ;)
  47. >
  48. >I built a timing loop to test the 2 versions :
  49. >
  50. >'different way
  51. >Timer=0
  52. >For A=0 To 100000
  53. >   J=Joy(1)
  54. >   K=J-2
  55. >   P#=J/4.0
  56. >   P=P#
  57. >   I=Sgn(J)
  58. >   If P#=P
  59. >      X=Sgn(J-6)*I
  60. >   End If
  61. >   If P=0
  62. >      Y=I*(K+K+1)
  63. >   End If
  64. >Next
  65. >Print Timer
  66. >
  67. >
  68. >' Old way
  69. >Timer=0
  70. >For A=0 To 100000
  71. >   X=0 : Y=0
  72. >   If Jup(1)
  73. >      Y=-1
  74. >   End If
  75. >   If Jdown(1)
  76. >      Y=1
  77. >   End If
  78. >   If Jleft(1)
  79. >      X=-1
  80. >   End If
  81. >   If Jright(1)
  82. >      X=1
  83. >   End If
  84. >Next
  85. >Print Timer
  86. >
  87. >before compiling the Old way was a lot faster, but after compiling it
  88. >was a lot closer:
  89. >
  90. >no joystick movement
  91. >
  92. >Old:155
  93. >New:143
  94. >
  95. >Holding down on joystick
  96. >Old:154
  97. >New:193
  98. >
  99. >Although new is quicker when there's no joy activ. it slows down when
  100. >the joystick is pressed.
  101. >
  102. >But, 50vbl out of 100000 loops isn't going to make a lot of difference
  103. >anyway so you may as well just use whichever you prefer.
  104. >
  105. >
  106. >--
  107. >                                <PRE>
  108. >  - --------------------- Quote of the day: ---------------------- -
  109. >It is better to have tried and failed than to have failed to try, but
  110. >the result's the same.
  111. >-- Mike Dennison
  112. >
  113. >+--------------------------------------------------------------------+
  114. >|                                                ,aNNN               |
  115. >|  a&   NL                 ,a,                 ,gNNNNN               |
  116. >|  @7L d 0   ,a,,aw ,a,,  JN Q,  ,a,,aw,,,,  ,gNM"`NN'               |
  117. >| J  9w"  K N" "" NN"""""WF  ~3&N" "" N   ""^N"    NF                |
  118. >| N , " , Nd ,@M, NN JML @ML d@N ,@4, N       ',  JK                 |
  119. >|d JMc dN  N  NN  NN 0 1 1J1 0 0  NN  N         L,K                  |
  120. >|N,N 0w' Na@h,,a,,NQ,0 &J1J&,0  \,,a,,N         JF                   |
  121. >| ""  "  ~"  ""~"""~"" ""  """  t""~"""        j"1                   |
  122. >|                               F             JgmJ        ,gm        |
  123. >|                               F            N"  N  ,,    F ,N gNN   |
  124. >|      Andrew Crowe             Q          jJF  mP p""9w,NL NwmP 0mw |
  125. >|      ~~~~~~~~~~~~             ]         / I  0 F@ am, Nw  ,0&   ,N |
  126. >|       Manta Soft             ,F\      a' ,N  Nf L E 0 0ML N""N 0"  |
  127. >|       ~~~~~~~~~~            ,N  \,  ,P N@"  JF  & `@" NJL N  N 0   |
  128. >|                            ,N     ad"   \wam"   `Nx,aN JNmN  NmN   |
  129. >|                            NN ,,gN" ""PP"                          |
  130. >|                           dNNNNN"                                  |
  131. >|                           NNN@"      Web Designing and          // |
  132. >| Visit our Web Site:       ""               Amiga Programming \\//  |
  133. >|                                                                    |
  134. >|     HTTP://www.geocities.com/Eureka/Gold/1713/                     |
  135. >|                                                                    |
  136. >+----------------------------+      This signature was created using |
  137. >| andrewcrowe@enterprise.net |         AsciiArt Studio               |
  138. >+----------------------------+---------------------------------------+
  139. >                                </PRE>
  140. >
  141. >
  142. >------------------------------------------------------------------------
  143. >Help support ONElist, while generating interest in your product or
  144. >service. ONElist has a variety of advertising packages. Visit
  145. >http://www.onelist.com/advert.html for more information.
  146. >
  147.  
  148. Hey! I never said it would be fast... I only said it got rid of annoyingly
  149. slow if statements
  150. but hey! I dodn't care i was bored so i set myself a problem and i solved
  151. it... also if U R going for a Small program The new version is alot
  152. smaller.... especially if u r trying 2 program the smallest good Tron
  153. ever!!!! thats me!
  154.  
  155. Bye Thanx 4 de Speed test!
  156.  
  157.  
  158.  
  159. ------------------------------------------------------------------------
  160. Help support ONElist, while generating interest in your product or
  161. service. ONElist has a variety of advertising packages. Visit
  162. http://www.onelist.com/advert.html for more information.